package com.li.learning.train.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.li.learning.train.model.vo.QuestionInfoVo;
import com.li.learning.train.model.vo.KnowledgeAndChapterVo;
import com.our.learning.infrastructure.po.TrainPaper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface TrainPaperMapper extends BaseMapper<TrainPaper> {

    /**
     * 获取该生的前五次考试错题记录
     * @param stuId
     * @return
     */
    List<KnowledgeAndChapterVo> getWrongQuestion(Integer stuId);

    List<QuestionInfoVo> getRandomQuestion(KnowledgeAndChapterVo vo);
}
